package com.wsl.service;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 17:20 2018/1/10
 * @Modified by:
 */
@Component
public class RedisService {
    @Cacheable(value = "add",key = "'wang-'+#wsl+'-wsl'",condition = "1==1")
    public  String add(String wsl){
        return wsl;
    }

    @Cacheable(value = "keyadd",keyGenerator = "wiseLyKeyGenerator")
    public  String  keygene(String wsl){
        return wsl;
    }
}